import config from '@/config';
import RequestBase from '@/utils/request.js';

const baseRequest = new RequestBase(config.equipment);

// 获取某个设备台账信息
export function getDeviceStandingBookById(id) {
	return baseRequest.get(`/mobile/dfm/deviceLedger/${id}`);
}

//缺陷关联设备
export function deviceHiddenDangerManage(data) {
	return baseRequest.post('/mobile/dfm/device-hidden-danger-manage/save', data);
}

//新增缺陷
export function addDefect(data) {
	return baseRequest.post('/dfm/defect/add', data);
}